﻿using Shinva.Variables.Interface;
using Shinva.Variables.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shinva.Variables.Type.integer
{

    /// <summary>
    /// ushort 类型是无符号的 16 位整数，所以它只能表示非负整数，范围是从 0 到 65535。
    /// </summary>
    public class PlcUInt : PlcMemberBase
    {
        public  ushort Value { get; set; }
        public PlcUInt()
        {
            Value = 0;
            Name = "UInt";
            DataType = DataType.UInt;
            SizeInBits = 16;
        }
    }
}
